package com.ruoyi.business.controller.user;

import com.ruoyi.business.service.ITSureInfoService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 报到信息Controller
 *
 * @author Tellsea
 * @date 2024-02-01
 */
@Api(tags = "报到信息Controller")
@RestController
@RequestMapping("/au/sureInfo")
@RequiredArgsConstructor(onConstructor_ = @Autowired)
public class AuSureInfoController extends BaseController {

    private final ITSureInfoService tSureInfoService;

    @ApiOperation("获取报到信息详细信息")
    @GetMapping(value = "/getInfo/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id) {
        return AjaxResult.success("查询成功", tSureInfoService.queryById(id));
    }
}
